package com.ryskoo.common.dto.order;


import java.util.List;

/**
 * 地区DTO
 */
public class AreaDTO {
    //未选中
    public static final int CHECKED_NONE  = 0;

    //部分选中
    public static final int CHECKED_PART  = 1;

    //全部选中
    public static final int CHECKED_ALL  = 2;

    //地区编码
    private String code;

    //地区名称
    private String name;

    //上级地区编码
    private String parentCode;

    //选中状态
    private boolean checked;

    //是否显示部分选中样式
    private boolean indeterminate;

    private List<AreaDTO> subAreaList;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isIndeterminate() {
        return indeterminate;
    }

    public void setIndeterminate(boolean indeterminate) {
        this.indeterminate = indeterminate;
    }

    public List<AreaDTO> getSubAreaList() {
        return subAreaList;
    }

    public void setSubAreaList(List<AreaDTO> subAreaList) {
        this.subAreaList = subAreaList;
    }
}
